<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
  <style type="text/css">
  /* tooltip */
  #tooltip{
    position:absolute;
    border:1px solid #ccc;
    background:#333;
    padding:2px;
    display:none;
    color:#fff;
  }
  </style>
</head>
<body style="padding:10px;">
  <div class="tplay-body-div">
    <div class="layui-tab">
      <ul class="layui-tab-title">
        <li class="layui-this">拆迁状态列表</li>
      </ul>
    </div> 
      <!-- <form class="layui-form serch" action="{:url('admin/population/index')}" method="post">
        <div class="layui-form-item" style="float: left;">
          <div class="layui-input-inline">
            <input type="text" name="keywords" lay-verify="title" autocomplete="off" placeholder="请输入关键词" class="layui-input layui-btn-sm">
          </div>
          <button class="layui-btn layui-btn-danger layui-btn-sm chaxui" lay-submit="" lay-filter="serch">立即查询</button>
        </div>
      </form>  -->
    <!-- <table class="layui-table" lay-size="lg">
    <h2><caption align="center" style="font-weight: bold;">拆迁状态列表</caption></h2>
      <thead>
        <tr>
          <th>全部</th>
          <th>已完成</th>
          <th>全部</th>
          <th>已完成</th>
          <th>已签</th>
          <th>已联系</th>
          <th>未联系</th>
          <th>操作</th>
        </tr> 
      </thead>
      <tbody>
      </tbody>
    </table> -->
    <table class="layui-table" lay-size="lg" >
      <tr>
        <td valign="top" align="center" ><strong>全部</strong></td>
        <td valign="top" ><p align="center" ><strong>已完成</strong><strong></strong></p></td>
        <td valign="top" ><p align="center" ><strong>已签</strong><strong> </strong></p></td>
        <td valign="top" align="center" ><strong>已联系</strong><strong></strong></td>
        <td valign="top" ><p align="center" ><strong>未联系</strong></p></td>
      </tr>
      <tr>
        <td valign="top" ><p align="center" ><strong><a href="">{$zhu.all}</a></strong></p></td>
        <td valign="top" ><p align="center" ><strong><a href="{:url('chaiqian/chaiqian',['statusType'=>1])}">{$zhu.yiwancheng}/{$zhu.all}</a></strong></p></td>
        <td valign="top" ><p align="center" ><strong><a href="{:url('chaiqian/chaiqian',['statusType'=>2])}">{$zhu.yiqian}/{$zhu.all}</a></strong></p></td>
        <td valign="top" ><p align="center" ><strong><a href="{:url('chaiqian/chaiqian',['statusType'=>3])}">{$zhu.yilianxi}/{$zhu.all}</a></strong></p></td>
        <td valign="top" ><p align="center" ><strong><a href="{:url('chaiqian/chaiqian',['statusType'=>4])}">{$zhu.weilianxi}/{$zhu.all}</a></strong></p></td>
      </tr>
      <tr>
        <td valign="top" >&nbsp;</td>
        <td valign="top" ><p align="center" ><strong>{$zhu.bl1}%</strong><strong> </strong></p></td>
        <td valign="top" ><p align="center" ><strong>{$zhu.bl2}%</strong><strong> </strong></p></td>
        <td valign="top" ><p align="center" ><strong>{$zhu.bl3}%</strong><strong> </strong></p></td>
        <td valign="top" ><p align="center" ><strong>{$zhu.bl4}%</strong><strong> </strong></p></td>
      </tr>
    </table>
    <div style="padding:0 40px;"></div> 
    <h2 style="text-align: center;margin-top:40px;"><caption align="center" style="font-weight: bold;padding: 20px;">户主列表</caption></h2>

    <?php if(!in_array($admin_cate_id,$operation)){ ?>
    <form action="" class="layui-form">
      <div class="layui-form-item ">
        <label class="layui-form-label">选择状态</label>
        <div class="layui-input-inline">
          <select name="city" lay-verify="required">
            <option value="0">全部</option>
            <option value="1">已完成</option>
            <option value="2">已签</option>
            <option value="3">已联系</option>
            <option value="4">未联系</option>
          </select>
        </div>
      </div>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-filter="formDemo">确定</button>
        </div>
      </div>

    </form>
    <?php } ?>

    <table class="layui-table" lay-size="lg">
   

      
     


      <thead>
        <tr>
          <th>序号</th>
          <th>评估编号</th>
          <th>姓名</th>
          <th>拆迁补偿款</th>
          <th>回迁结算款</th>
          <th>总金额</th>
          <th>选房总面积m²</th>
          <th>保障房面积m²</th>
          <th>货币化拆迁成本</th>
          <th>对应楼号</th>
          <th>状态</th>
          <!-- <th>操作</th> -->
        </tr> 
      </thead>
      <tbody>
        {volist name="list" id="vo"}
          <tr>
            <td>{$key+1}</td>
            <td>{$vo.pingnum}</td>
            <td>{$vo.name}</td>
            <td>{$vo.chaiqianbu}</td>
            <td>{$vo.hqjiesuan}</td>
            <td>{$vo.zong}</td>
            <td>0</td>
            <td>0</td>
            <td>0</td>
            <td>{$vo.louhao}</td>
            <td>{$vo.status}</td>
          </tr>
        {/volist}
      </tbody>
    </table>
    {include file="public/foot"}
  </div>
  <script>
    layui.use('layer', function() {
        var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
        var layer = layui.layer;
        $('.a_menu').click(function() {
            var url = $(this).attr('href');
            var a = 0;
            $.ajax({
                url: url,
                async: false,
                success: function(res) {
                    if (res.code == 0) {
                        layer.msg(res.msg);
                        a = 1;
                    }
                }
            })
            if (a === 0) {
                layer.open({
                    type: 2,
                    content: [url],
                    area: ['700px', '500px'],
                    scrollbar:true
                });
            }
            return false;
        })
    });
  </script>
  <script type="text/javascript">
    $('.delete').click(function(){
      var id = $(this).attr('id');
      layer.confirm('确定要删除?', function(index) {
        $.ajax({
          url:"{:url('admin/user/delete')}",
          data:{id:id},
          success:function(res) {
            layer.msg(res.msg);
            if(res.code == 1) {
                layer.alert('删除成功！',{icon:2});
                location.reload();
            }
          }
        })
      })
    })
    </script>
</body>
</html>